package net.wendal.nutzbook;

import org.nutz.mvc.annotation.*;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

/**
 * Created by vpc on 2016/1/5.
 */
@ChainBy(args = "conf/mvc/nutzbook-mvc-chain.js")
@Localization(value = "conf/msg/", defaultLocalizationKey = "zh-CN")
@Fail("jsp:pages.errorPage.500")
@Ok("json:full")
@SetupBy(value = MainSetup.class)
//ComboIocProvider的args参数, 星号开头的是类名或内置缩写,剩余的是各加载器的参数
//*js 是JsonIocLoader,负责加载js/json结尾的ioc配置文件
//*anno 是AnnotationIocLoader,负责处理注解式Ioc, 例如@IocBean
//*tx 是TransIocLoader,负责加载内置的事务拦截器定义, 1.b.52开始自带
@IocBy(type = ComboIocProvider.class, args = {"*js", "conf/ioc/", "*anno", "net.wendal.nutzbook", "*tx",
        "*org.nutz.integration.quartz.QuartzIocLoader"})
@Modules(scanPackage = true)
public class MainModule {

}
